As of 2016-02-26, there will be no more posts for this blog. s/blog/pba/
Showing posts with label Mac OS. Show all posts

I came across Glances, a system monitoring program written in Python, as its name hints, it enables you to review system information, status, or resource usage in just a few glances. As you can see from the screen shot above, all information in one screen.

  • CPU: Glances probably the only few programs which display the details of what CPU spends time on rather than just a simple percentage of utilization. How much time it's idling or waiting for IO? For example, iowait is an useful information, when disk is busy, more or less it could slow down the system for different reasons and by reading iowait, you know some heavy IO activity is going on.
  • Load average: It's same as uptime gives, the load average of past 1, 5, and 15 minutes.
  • Memory and Swap: Like CPU, more detail is shown, such as buffered, cached, active, or inactive memory. Similar to free command output.
  • Network: Each interface's bandwidth usage, upload and download rates. You can press B to switch unit between bit/second and byte/second.
  • Disk I/O: Read/Write rates on partitions and devices. Not only physical storage devices but also optical devices.
  • Mount points: Similar information you get from df command, such as total size, used space, and available size.
  • Processes: Like htop or top, you can use keys to choose sorting fields.
Glances shows information as much as they can be fitted in terminal window size. You can turn off sections by keys, separately, if you don't need them.

It also support server mode, a client can use XML-RPC call to get the system information in JSON format. It's possible to write your own client if you don't like default text-based client or you can write a GUI or web interface to display the data. It supports Linux, Mac OS, and Windows, although no default client for Windows, it will only runs as server due to no curses module available on Windows platform.

Glances is only one-year-old, first released on December 4, 2011, there are many possibilities for improvements. For example, configuration file for colors or disabling sections by default. Also custom fields for processes, and the list can go on and on.

I was intrigued by its name when I first heard of it and the idea behind this program is useful and simple. You don't need to run several programs to get all information of a system. You can have everything on one screen, even status of multiple systems at same time with client/server mode and terminal multiplexer.

As a Windows user

Don't you dare to say PC! Damn you, don't even know of the OS you are using.
  1. Search for it, click on first software directory website, go through a few pages, close it, try second website...
  2. Download it.
  3. Double-check with anti-virus software.
  4. Triple-check with another anti-virus software.
  5. Install it while praying that it really doesn't contain any viruses.
  6. Run it.
  7. Figure out which Next button to click...
  8. Job done.

As a Mac OS X user

You... uhm... I got nothing to bitch.
  1. Go to App store.
  2. Search for it.
  3. Slide, Slide, and Slide.
  4. Pay for it.
  5. Install it while paying for additional copies for your i[whatever] and i[whocares] and i...
  6. Run it.
  7. Job done.

As a Linux user

Alright, GNU/Linux user, happy?
  1. Search for it with package manager.
  2. Install it.
  3. Run it.
  4. Job done.
or
  1. Search for it.
  2. Download source tarball.
  3. Compile it while joining on #[channel].
  4. Install it.
  5. Run it.
  6. Job done.
or
  1. #!/bin/bash or whatever Shebang line you nerd at.
  2. Code it.
  3. RTFM.
  4. Test it.
  5. RTDFMA (Read The Damn  Fucking Manual Again).
  6. Fix it while cursing why a library sucks.
  7. Run it.
  8. Job done.

Please don't take anything above seriously, just for fun and they may not all be true.